package com.hyt.it.ogt.kq.service.bm.feign.pt;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.it.ogt.kq.service.bm.feign.pt.model.MessageApiVo;
import com.hyt.it.ogt.kq.service.bm.feign.pt.model.NoticeInfo;
import com.hyt.it.ogt.kq.service.bm.feign.pt.model.SysMessageResultVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@Slf4j
public class PtClientHystrix implements PtClient {
    @Override
    public ApiResponse<List<SysMessageResultVo>> querySysMessage(@RequestParam("eventCode") String eventCode) throws Exception {
        //  Auto-generated method stub
        throw new Exception("获取系统消息失败");
    }

    @Override
    public ApiResponse sendNoticeInfo(List<NoticeInfo> list) throws Exception {
        throw new Exception("发送系统消息失败");
    }

    @Override
    public void sendSysMessage(List<MessageApiVo> list) throws Exception {
        throw new Exception("发送短信消息失败");
    }


}
